#define _CRT_SECURE_NO_WARNINGS 1
//#include<iostream>
//using namespace std;
//
//class Clock
//{
//public:
//	Clock(int newH=0,int newM=0,int newS=0)
//	{
//		H = newH;
//		M = newM;
//		S = newS;
//	}
//
//	void setTime(int h = 0, int m = 0, int s = 0);
//	void showTime();
//
//private:
//	int H, M, S;
//};
//
//void Clock::setTime(int h, int m, int s)
//{
//	H = h;
//	M = m;
//	S = s;
//}
//
//void Clock::showTime()
//{
//	cout << H << ":" << M << ":" << S << endl;
//}
//
//int main()
//{
//	Clock myclock(8,30,30);
//	myclock.showTime();
//	myclock.setTime(8, 8, 8);
//    myclock.showTime(); 
//
//	return 0;
//}

#include<iostream>
using namespace std;
class Clock
{
private:
	int H, M, S;
public:
	Clock(int h, int m, int s)
	{
		H = h;
		M = m;
		S = s;
		cout << "constructor:" << H << ":" << M << ":" << S << endl;
	}
	~Clock()
	{
		cout << "destructor:" << H << ":" << M << ":" << S << endl;
	}
};

Clock C1(1, 0, 0);
Clock C2(2, 0, 0);

int main()
{
	Clock C3(3, 0, 0);
	Clock C4(4, 0, 0);
	return 0;
}